/**
* +----------------------------------------------------------------------
* | 友得云客  - 开启房产营销新纪元
* +----------------------------------------------------------------------
* | Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
* +----------------------------------------------------------------------
* | Licensed 友得云客不是自由软件 未经允许不可移除相关版权
* +----------------------------------------------------------------------
* | Author: www.youdeyunke.com
* +----------------------------------------------------------------------
*/
import request from '@/utils/request'

export function getPostServerList(postId) {
    var params = { post_id: postId }
      return request({
          url: '/admin6/post_servers',
          method: 'GET',
          params
      })
  }
  
  
  export function createPostServer(data) {
      return request({
          url: '/admin6/post_servers',
          method: 'POST',
          data: data
      })
  }
  
  
  export function updatePostServer(data) {
      return request({
          url: '/admin6/post_servers/' + data.id,
          method: 'PATCH',
          data: data
      })
  }
  
  export function deletePostServer(sid) {
      return request({
          url: '/admin6/post_servers/' + sid,
          method: 'DELETE',
      })
  }